import Layout from "@/views/layout/index";

const dynedAccountRouter = {
  path: "/dynedAccount",
  component: Layout,
  name: "dyned",
  meta: {
    title: "DYNED账号管理",
    icon: "iconfont icon-zhanghaoguanli"
  },
  redirect: "/dynedAccount/manage",
  children: [
    {
      path: "manage",
      name: "dynedAccountManage",
      component: () => import("@/views/dynedAccount/manage"),
      meta: {
        title: "DYNED账号管理",
        icon: "iconfont icon-zhanghaoguanli",
        api: ["dyned"],
        authority: ["list"]
      },
      checkedList: [],
      rights: [
        {
          value: "list",
          label: "列表"
        },
        {
          value: "own",
          label: "只看自己"
        },
        {
          value: "create",
          label: "添加"
        },
        {
          value: "details",
          label: "详情"
        },
        {
          value: "edit",
          label: "编辑"
        }
      ]
    }
    /* {
      path: "details",
      name: "dynedAccountDetails",
      component: () => import("@/views/dynedAccount/details"),
      hidden: true,
      meta: {
        title: "DYNED账号详情",
        icon: "el-icon-s-management",
        api: ["dyned"],
        authority: ["own", "list", "create", "edit", "details", "delete"]
      }
    },
    {
      path: "operation",
      name: "dynedAccountOperation",
      component: () => import("@/views/dynedAccount/operation"),
      hidden: true,
      meta: {
        title: "编辑DYNED账号",
        icon: "el-icon-s-management",
        api: ["dyned"],
        authority: ["own", "list", "create", "edit", "details", "delete"]
      }
    } */
  ]
};

export default dynedAccountRouter;
